#!/usr/bin/bash

ROOT_DIR_NAME=.nextide
ROOT=$HOME/$ROOT_DIR_NAME

rm -rf $ROOT

cd $HOME
svn checkout https://nextide.googlecode.com/svn/trunk/ $ROOT_DIR_NAME

#if [ ! `whoami` == "root" ];then
#    echo -e $(tput setaf 6)"The installer require root denied:"$(tput sgr0)
#fi

rm -rf /usr/local/bin/nextide
ln -s $ROOT/nextide /usr/local/bin/nextide

source $ROOT/nextide
